import 'package:flutter/material.dart';

class Practice05 extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    List<String> data = List<String>.generate(100, (i) => "item $i");
    return MaterialApp(
      title: "",
      home: Scaffold(
        appBar: AppBar(title: Text("长列表")),
        body: ListView.builder(
          itemCount: data.length,
          itemBuilder: (context, index) {
            return ListTile(
                leading: Icon(Icons.phone), title: Text("${data[index]}"));
          },
        ),
      ),
    );
  }
}
